package o;

import com.huawei.appgallery.serverreqkit.api.bean.startup.StartupResponse.IPInfo;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class dvx implements cds {
    public void ˊ(int i) {
        dvp.ˊ().ˎ(i);
    }

    public void ˏ(List<IPInfo> list) {
        if (list != null) {
            Map hashMap = new HashMap(2);
            for (IPInfo iPInfo : list) {
                Object obj = iPInfo.uri_;
                if (obj.endsWith("\\") || obj.endsWith("/")) {
                    obj = obj.substring(0, obj.length() - 1);
                }
                switch (iPInfo.use_) {
                    case 1:
                        hashMap.put("httpDispatchBackupIp", obj);
                        break;
                    case 2:
                        hashMap.put("httpsDispatchBackupIp", obj);
                        break;
                    default:
                        break;
                }
            }
            dvt.ˏ().ˎ(hashMap);
        }
    }

    public void ˊ(boolean z) {
        dvt.ˏ().ॱ(z);
    }
}
